home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / PInterfaces / Disks.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  2.2 KB  |  100 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Disks.p
  3.  
  4.      Contains:    Disk Driver Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT Disks;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __DISKS__}
  30. {$SETC __DISKS__ := 1}
  31.  
  32. {$I+}
  33. {$SETC DisksIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __TYPES__}
  38. {$I Types.p}
  39. {$ENDC}
  40. {    ConditionalMacros.p                                            }
  41.  
  42. {$IFC UNDEFINED __OSUTILS__}
  43. {$I OSUtils.p}
  44. {$ENDC}
  45. {    MixedMode.p                                                    }
  46. {    Memory.p                                                    }
  47.  
  48. {$PUSH}
  49. {$ALIGN MAC68K}
  50. {$LibExport+}
  51.  
  52. CONST
  53.     sony                        = 0;
  54.     hard20                        = 1;
  55.  
  56.  
  57. TYPE
  58.     DrvSts = RECORD
  59.         track:                    INTEGER;                                { current track }
  60.         writeProt:                SignedByte;                                { bit 7 = 1 if volume is locked }
  61.         diskInPlace:            SignedByte;                                { disk in drive }
  62.         installed:                SignedByte;                                { drive installed }
  63.         sides:                    SignedByte;                                { -1 for 2-sided, 0 for 1-sided }
  64.         qLink:                    QElemPtr;                                { next queue entry }
  65.         qType:                    INTEGER;                                { 1 for HD20 }
  66.         dQDrive:                INTEGER;                                { drive number }
  67.         dQRefNum:                INTEGER;                                { driver reference number }
  68.         dQFSID:                    INTEGER;                                { file system ID }
  69.         CASE INTEGER OF
  70.         0: (
  71.             twoSideFmt:                    SignedByte;                            { after 1st rd/wrt: 0=1 side, -1=2 side }
  72.             needsFlush:                    SignedByte;                            { -1 for MacPlus drive }
  73.             diskErrs:                    INTEGER;                            { soft error count }
  74.            );
  75.         1: (
  76.             driveSize:                    INTEGER;
  77.             driveS1:                    INTEGER;
  78.             driveType:                    INTEGER;
  79.             driveManf:                    INTEGER;
  80.             driveChar:                    INTEGER;
  81.             driveMisc:                    SignedByte;
  82.            );
  83.     END;
  84.  
  85.  
  86. FUNCTION DiskEject(drvNum: INTEGER): OSErr;
  87. FUNCTION SetTagBuffer(buffPtr: UNIV Ptr): OSErr;
  88. FUNCTION DriveStatus(drvNum: INTEGER; VAR status: DrvSts): OSErr;
  89.  
  90. {$ALIGN RESET}
  91. {$POP}
  92.  
  93. {$SETC UsingIncludes := DisksIncludes}
  94.  
  95. {$ENDC} {__DISKS__}
  96.  
  97. {$IFC NOT UsingIncludes}
  98.  END.
  99. {$ENDC}
  100.